//
//  DBAccess.h
//  SeaMelonSeeds_Counselor
//
//  Created by 杨笑 on 2017/9/22.
//  Copyright © 2017年 杨笑. All rights reserved.
//

#import <Foundation/Foundation.h>

@class Region;
@interface DBAccess : NSObject
 
+(DBAccess *)sharedInstance;

//城市操作
-(NSArray *)getAllCityByConditions:(NSString *)conditions;
-(NSArray *)searchOpenCity;
//更新所有城市为未开通
-(NSInteger)updateAllCityUnService;
//更新指定城市已开通
-(NSInteger)updateCityServiceByCityId:(NSString *)cityId;
//根据名称查找出区域model
-(Region *)getRegionByName:(NSString *)name;
//根绝区域id返回区域名称
-(NSString *)getRegionNameById:(NSString *)regionId;
//获取城市按照级别划分
-(NSMutableArray *)getAllProvice;
//查找子区域
-(NSMutableArray *)getRegionByParentRegion:(Region *)pRegion;
@end
